using System.Windows.Forms;

namespace Silent.Application.Extensions
{
    public static class FormExtensions
    {
        public static void CreateOrShow<T>(this T form) where T : Form, new()
        {
            if (form == null || form.IsDisposed)
                form = new T();
            form.Show();
            form.Activate();
        }
    }
}